<div class="leftBox">
<h2>New Position</h2>
<?php // Change the css classes to suit your needs    

$attributes = array('class' => '', 'id' => '');
echo form_open('position/submit', $attributes); ?>

<p>
        <label for="pos_name">Pos_name <span class="required">*</span></label>
        <?php echo form_error('pos_name'); ?>
        <br /><input id="pos_name" type="text" name="pos_name" maxlength="45" value="<?php echo set_value('pos_name'); ?>"  />
</p>

<p>
        <label for="pos_desc">Pos_desc <span class="required">*</span></label>
	<?php echo form_error('pos_desc'); ?>
	<br />
							
	<?=form_textarea( array( 'name' => 'pos_desc', 'rows' => '5', 'cols' => '80', 'value' => set_value('pos_desc') ) )?>
</p>
<p>
        <label for="event_id">event_id <span class="required">*</span></label>
        <?php echo form_error('event_id'); ?>
        
        <?php // Change the values in this array to populate your dropdown as required ?>
        <?php $options = $eventList; ?>

        <br /><?=form_dropdown('event_id', $options, set_value('event_id',$default_event))?>
</p>                                             
                        
<p>
        <label for="pos_win_votes">pos_win_votes <span class="required">*</span></label>
        <?php echo form_error('pos_win_votes'); ?>
        <br /><input id="pos_win_votes" type="text" name="pos_win_votes" maxlength="11" value="<?php echo set_value('pos_win_votes'); ?>"  />
</p>

<p>
        <label for="order">order <span class="required">*</span></label>
        <?php echo form_error('order'); ?>
        <br /><input id="order" type="text" name="order" maxlength="11" value="<?php echo set_value('order'); ?>"  />
</p>


<p>
        <?php echo form_submit( 'submit', 'Submit'); ?>
</p>

<?php echo form_close(); ?>
</div>